<template>
  <div class="layout-page pt-32px">
    <div class="layout-page-inner w-70% bg-white p-32px">
      <h1 class="title">关于我们</h1>
      <div class="divider"></div>
      <div class="ql-editor" v-html="info"></div>
    </div>
  </div>
</template>

<script setup>
import { ref, watch } from 'vue';
import { useNewsList } from "@/hooks";

const { list } = useNewsList({ pageSize: 1, infoType: 3 });
const info = ref("");

watch(
    () => list.value,
    (val) => {
      if (!val.length) return;
      info.value = val[0].infoDetailDesc;
    }
);
</script>
<style scoped>
.layout-page {
  padding-top: 32px;
}

.layout-page-inner {
  width: 70%;
  background-color: white;
  padding: 32px;
  margin: 0 auto;
  box-sizing: border-box;
}

.title {
  font-size: 32px;
  text-align: center;
  font-weight: 500;
}

.divider {
  height: 1px;
  background-color: #d8d8d8;
  margin: 40px 0;
}

.ql-editor {

  font-size: 16px;
}

@media (max-width: 768px) {
  .layout-page-inner {
    padding: 16px;
    width: 90%;
  }

  .title {
    font-size: 24px;
  }

  .divider {
    margin: 20px 0;
  }

  .ql-editor {
    font-size: 14px;
  }
}
</style>

